﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.EntityClient;
using System.Data.EntityModel;
using System.ComponentModel.DataAnnotations;
using GameSchool.Repository.Repositories.RuGameSchool;

namespace GameSchool.Models
{
	
	/// <summary>
	/// Comment geymir þær upplýsingar sem þarf til að skrá Comment frá notanda í gagnagrunninn. 
	/// </summary>  
	
	[Table("gs_comment")]
	public class Comment
    {
        [Key]
        [Column("gs_comment_id")]
        public int CommentId { get; set; }

        [Column("person_id")]
        public int PersonId { get; set; }

        [ForeignKey("PersonId")]
        public virtual Person Person { get; set; }

        [Column("active")]
        public bool Active { get; set; }

        public virtual ICollection<CommentLike> Likes { get; set; }
    }
}